<include file="Base/header" />
<div class="page-container">
	<include file="Base/menu" />
	<div class="page-content">
		<div class="container-fluid">
			<div class="row-fluid">
					<div class="span12">
						<!-- BEGIN PAGE TITLE & BREADCRUMB-->
						<h3 class="page-title">
						</h3>
						<ul class="breadcrumb">
							<li>
								<i class="icon-home"></i>
								<a href="/index.php/Admin/">首页</a>
								<i class="icon-angle-right"></i>
							</li>
							<li><a href="/index.php/Admin/Company">红包管理</a></li>
						</ul>
						<!-- END PAGE TITLE & BREADCRUMB-->
					</div>
			</div>
			<div class="row-fluid">
				<div class="span12">
					<div class="portlet box blue tabbable">
						<div class="portlet-title">
							<div class="caption">
								<i class="icon-reorder"></i>
									<span class="hidden-480">红包及活动规则介绍</span>
							</div>
						</div>

					<div class="portlet-body form">
						<form  method="post" id="explainForm" class="form-horizontal">
							<div class="control-group"></div>
							<div class="control-group">
								<!-- <label class="control-label">ID</label> -->
								<div class="controls">
									<input type="hidden"  class="m-wrap large" disabled="">
									<span class="help-inline"></span>
								</div>
							</div>
							<div class="control-group">
                        		<label class="control-label">标题一：</label>
                                <div class="controls">
									<input name="bao_title" value="{$data.bao_title}" type="text" class="m-wrap large">
								</div>
                            </div>
							
							<div class="control-group">
								<label class="control-label">解释一：</label>
								<div class="controls">
									 <textarea class="m-wrap" name='bao_explain'  type="text/plain" style='width:50%;height:120px;'>{$data.bao_explain}</textarea>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label">标题二：</label>
								<div class="controls">
									<input name="activi_title" value="{$data.activi_title}" type="text"  class="m-wrap large">
								</div>
							</div>
							<div class="control-group">
								<label class="control-label">解释二：</label>
								<div class="controls">
									<textarea class="m-wrap" name='activi_explain'  type="text/plain" style='width:50%;height:120px;'>{$data.activi_explain}</textarea>
								</div>
							</div>

							<div class="control-group">
								<label class="control-label">标题三：</label>
								<div class="controls">
									<input name="rule_title" value="{$data.rule_title}" type="text" class="m-wrap large">
									<span class="help-inline">可选</span>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label">解释三：</label>
								<div class="controls">
									<textarea class="m-wrap" name='rule_explain'  type="text/plain" style='width:50%;height:120px;'>{$data.rule_explain}</textarea>
								</div>
							</div>
							<div class="form-actions">
								<input type="button" id="submitExplain" value="保存" class="btn blue" />
								<!-- <button type="button" class="btn">删除</button> -->
							</div>
						</form>
					</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script src="__PUBLIC__/plugins/layer/layer.min.js"></script>
<script type="text/javascript">
	$("#submitExplain").click(
		function(){
			var url = "{:U('Red/updateExplain')}";
			$.post(url, $("#explainForm").serializeArray(), function (result) {
	            if (result.status == 1) {
	                return layer.alert(result.message)
	            } else {
	                return layer.alert(result.message);
	            }
	        }, "JSON");
		}
	);
	function submitExplain(){
		
	}
</script>
<include file="Base/footer" />
